<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.7.2/axios.js"></script>
  </head>
  <body>
    <script type="module">
      const response = await axios.get("https://api.uomg.com/api/rand.qinghua");
      console.log("get", response.data); // 打印响应的数据

      const url = "https://api.uomg.com/api/rand.qinghua"; // 示例API端点
      const data = {
        title: "foo",
        body: "bar",
        userId: 1,
      };

      const response1 = await axios.post(url, data);
      console.log("post", response1.data); // 打印响应的结果
    </script>
  </body>
</html>
